home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 5
/
Gold Medal Software - Volume 5 (Gold Medal) (1995).iso
/
menuts
/
e4dv204.arj
/
E4KEYS
< prev
next >
Wrap
Text File
|
1994-10-02
|
5KB
|
162 lines
;****************************************************************
; This is an example key file for E4
; (C) Copyright 1991-1993 N.Faulks. All Rights Reserved.
;****************************************************************
; THIS FILE IS OPTIONAL - IT IS NOT REQUIRED TO USE E4
;****************************************************************
; This file is read during start-up by E4. It allows you to change
; the keyboard layout, by making a given key act like one or more
; other keys. You only need key assignments for those keys that
; you wish to change.
; A key assignment contains the key name in the first column, followed by
; a TAB and then a list of the key strokes to be assigned to the key.
; Comments start with a semicolon.
; To find out the name of a key use the Tools Keycodes command
;************************
; Function key shortcuts
;************************
; These allow quick shortcuts for useful key sequences. These are my
; personal favourites, so feel free to change them
; F2 gives a buffer list
F2 @B @L
; Strings may be include in key assignments
F9 "E4 Editor "
; F11 goes to the point where you last changed something. Press
; repeatedly to view the last few edits (for the current edit
; session only).
F11 @G @E
; F12 switches to the previous buffer
F12 @G @P
; It is possible to redefine keys so as to provide your own
; defaults for certain commands Here I am redefining the Dos
; command so that the Allsave option is always set
; (If you want this then remove the semicolon and the space
; following it)
; @d @d @plus @a
;************************
; Specials for the GRiD
;************************
; My Grid portable doesn't have a numeric key pad so I reassign
; Alt-PageDown to have the same effect as Grey Plus
@pgdn #plus
@pgup #minus
;************************
; Non-enhanced keyboards
;************************
; Standard PC keyboards (No F11 & F12) cannot generate some keys
; Here I make ^del (delete to end of line) into ALT-K for Kill
@K ^del
; Make ALT-E act as the Explode key (ALT-;)
@E @semi
;************************
; For Programmers
;************************
; These Assigments allow easy compilation and testing of programs from
; within the editor. The registered version of the editor comes with a
; library of macros which apply to other languages and also allow you to
; track error messages (putting the cursor over the offending line in your
; program)
; Use ALT-Z (Zip command) to view the output of compiler or your program.
; ^HOME is used to reset all the current options (for the Dos command).
; @A then turns on Autosave, and @U turns on Unloadall. These make sure
; that all your files are saved, and then unloaded from memory to make room
; for the compiler. F4 is replaced by the full pathname of the file. ESC
; is used to return from the DOS screen. Use ALT-Z to view errors, etc.
; COMPILE using the supplied COMPILE program. Edit the file COMPILE.CL
; to configure for different compilers or assemblers
^C @D ^HOME @A @U "compile " F4 RET
; EXECUTE the .EXE file produced by compiling the current buffer
^X @D @F4 RET
; DEBUG using the Turbo Debugger on the file. Change the string TD to
; suit your own requirements
^Z @D "TD " @F4 RET ESC
; The following macros assume that you are using the editor's project
; file facility. This allows the name of the current project (the name of
; the file you are trying to build) to be passed to the MAKE program
; (normally supplied with your compiler), the debugger, or run directly.
; Compile using the project file name as a target to make
^M @d ^home @a @u "make " f9 RET
; Run the project
^R @d ^home @a @u f9 RET
; Test using the Turbo Debugger
^T @d ^home @a @u "td " f9 RET ESC
; Sample Language Specific Assignments
; Comment out a C program line (this is best as a macro so that you can
; have different comment styles for different languages). The ^U macro
; un-comments a line commented by ^K.
^k home "/* " end " */" down home
^u home del del del end bksp bksp bksp down home
; This macro adds the current line to a list of function protoypes kept
; at the start of the file. The supplied TEMPLATE.C file includes the
; C comments necessary to make this work. To use this macro place the
; cursor over a function header and press ^P.
^p esc @c esc @f ^home @g @c "end of proto" ret
up home @v end semi @g @f
; For E4 Deluxe Only. The menu keyword must be assigned to a key before
; E4-Deluxe will display a menu bar.
[Menus]
F10 menu
; The top menu is replaced by this message until F10 is pressed or the mouse
; is moved over the top line. If you want to see the menu all of the time
; remove this line.
topline=E4 Deluxe Editor F10 for Menus
; Replace the standard message displayed on the dialog line
msg=Press F1 for HELP, F10 for Menus. ALT-Letter for Commands.